package com.feihe.entity;

import javax.persistence.*;

@Entity
@Table(name = "admin")
public class Admin {
    
    @Id
    private Long aid;
    
    @Column(name = "admin_username")
    private String adminUsername;
    
    @Column(name = "admin_password")
    private String adminPassword;
    
    // 构造函数
    public Admin() {}
    
    public Admin(String adminUsername, String adminPassword) {
        this.adminUsername = adminUsername;
        this.adminPassword = adminPassword;
    }
    
    // Getters and Setters
    public Long getAid() {
        return aid;
    }
    
    public void setAid(Long aid) {
        this.aid = aid;
    }
    
    public String getAdminUsername() {
        return adminUsername;
    }
    
    public void setAdminUsername(String adminUsername) {
        this.adminUsername = adminUsername;
    }
    
    public String getAdminPassword() {
        return adminPassword;
    }
    
    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }
} 